# OpenCV
find_package(OpenCV REQUIRED)
# Caffe
include(${CMAKE_CURRENT_LIST_DIR}/../../cmake/mini-caffe.cmake)

include_directories(${CMAKE_CURRENT_LIST_DIR}/src)
file(GLOB openpose_src ${CMAKE_CURRENT_LIST_DIR}//src/*.cpp)
include_directories(${CMAKE_CURRENT_LIST_DIR}/../common/)

add_library(libpose STATIC ${openpose_src})
target_link_libraries(libpose ${OpenCV_LIBS})
target_link_libraries (libpose debug caffed optimized caffe)

add_executable(posedet ${CMAKE_CURRENT_LIST_DIR}/test/main.cpp)
target_link_libraries(posedet ${OpenCV_LIBS} libpose)
target_link_libraries (posedet debug caffed optimized caffe)

add_executable(person-detpose-caffe ${CMAKE_CURRENT_LIST_DIR}/src_0/mcaffe.cpp)
target_link_libraries(person-detpose-caffe ${OpenCV_LIBS})
target_link_libraries (person-detpose-caffe debug caffed optimized caffe)